function backgroundClass(){
	this.imageOne = new Image;
	this.imageOne.src = "img/background.png";
	this.imageTwo = new Image;
	this.imageTwo.src = "img/background.png";
	this.imageOney = -canvas.height;
	this.imageTwoy = 0;
	
	this.drawImage = function(){
		context.beginPath();
		context.drawImage(this.imageOne,0,this.imageOney,canvas.width,canvas.height+20);
		context.drawImage(this.imageTwo,0,this.imageTwoy,canvas.width,canvas.height+20);
		context.save();	
	}
	this.bckslide = function(){
		this.imageOney+=2;
		if(this.imageOney>= canvas.height){
			this.imageOney = -canvas.height;
		}
		this.imageTwoy+=2;
		if(this.imageTwoy>= canvas.height){
			this.imageTwoy = -canvas.height;
		}
		this.drawImage();
	}
	
	
}
